package com.springSecurity.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping()
public class UserController {

    @GetMapping("/")
    public void index(){
        System.out.println("首页");
    }

    @GetMapping("/login")
    public void login(){
        System.out.println("登录");
    }

    @GetMapping("/level1")
    public void level1(){
        System.out.println("level1页面");
    }

    @GetMapping("/level2")
    public void level2(){
        System.out.println("level2页面");
    }

}
